package com.qf.service;

import com.qf.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService {
    //登录
    public User login(User user);
    //查询
    public List<User> findAll();
    User findByUsername(String username);
    // 添加注册方法
    void register(User user);
    //单行删除
    void delete(Integer id);
    // 批量删除
    void batchDeleteUser(@Param("ids") List<Integer> ids);
    //模糊查询
    List<User> findByUsernameLike(String username);
}
